﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="ProductList.aspx.cs" Inherits="ElectronicSelling.ProductList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="path">
        <a href="Default.aspx">
            <% Response.Write(ElectronicSelling.Utilities.ConstantDefault.Home_Text); %>
        </a>
        <%if (Request.QueryString["sid"] != null)
          {%>
        &nbsp;>&nbsp;
        <a href="">
            <%=GetPathSection() %>
        </a>
        <% } %>
        <%if (Request.QueryString["sid"] != null)
          {%>
        &nbsp;>&nbsp;
        <a href="">
            <%=GetPathCategory() %>
        </a>
        <% } %>
    </div>
    <div class="main_content">
        <div class="main_content_left">
            <div class="content_left_title">
                Danh mục sản phẩm
            </div>
            <div class="content_left_block">
                <ul>
                    <%Response.Write(GetMenuMultiLevel()); %>
                </ul>
            </div>
        </div>

        <div class="content_left_product">
            <asp:Repeater ID="rptProduct" runat="server">
                <ItemTemplate>
                    <div class="block_item" data-tooltip="sticky">
                        <div class="block_img">
                            <a href="DetailProduct.aspx?sid=<%#Eval("SectionId") %>&cid=<%#Eval("CategoryId") %>&pid=<%#Eval("ProductId") %>">
                                <img src="Images/loa.jpg" alt="<%#Eval("Name") %>" />
                            </a>
                        </div>
                        <div class="block_title_item">
                            <a href="DetailProduct.aspx?sid=<%#Eval("SectionId") %>&cid=<%#Eval("CategoryId") %>&pid=<%#Eval("ProductId") %>">
                                <%#Eval("Name") %>
                            </a>
                        </div>
                        <div class="old_price"><%#Eval("OldPrice", "{0:0,0}") %></div>
                        <div class="price"><%#Eval("CurrentPrice", "{0:0,0}") %> đ</div>
                        <span>
                            <img src="Images/rate.png" />
                        </span>
                        <a href="DetailProduct.aspx?sid=<%#Eval("SectionId") %>&cid=<%#Eval("CategoryId") %>&pid=<%#Eval("ProductId") %>">
                            <div class="button_buy"><% Response.Write(ElectronicSelling.Utilities.ConstantDefault.Order); %></div>
                        </a>
                    </div>
                    <div id="stickytooltip" class="stickytooltip">
                        <div class="tip_title"><%#Eval("Name") %></div>
                        <div id="sticky" class="atip">
                            <img src="Images/loa.jpg" />
                        </div>
                        <div class="tip_description">
                            <%#Eval("Intro") %>
                        </div>
                        <div class="tip_bonus">
                            <img src="Images/icon_km.gif" /><%#Eval("BonusName") %>
                        </div>
                        <div class="tip_price">Giá chỉ còn: <%#Eval("CurrentPrice", "{0:0,0}") %> đ</div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <div class="clear"></div>
        <div class="paging">
            <asp:Repeater ID="rptPage" runat="server" OnItemCommand="rptPages_ItemCommand1">
                <ItemTemplate>
                    <asp:LinkButton ID="btnPage" CommandName="Page" CommandArgument="<%#Container.DataItem %>" runat="server">
                            <div class="span"><%#Container.DataItem %></div>
                    </asp:LinkButton>
                </ItemTemplate>
            </asp:Repeater>
            <div class="clear"></div>
        </div>
    </div>
    <div class="clear"></div>

</asp:Content>
